<audio  style="display: none;" controls="controls"  src="http://m801.music.126.net/20210812162949/7a23599d0b4559759b8a9b0156dac720/jdymusic/obj/w5zDlMODwrDDiGjCn8Ky/2234478436/ea74/268b/d0b0/35427f829b28d425340b3d6b8db8030a.mp3"></audio>

<button class="a">播放</button>
<button class="b">暂停</button>
<button class="c">切换</button>
<script>
// 1 获取
var audio = document.querySelector('audio')
// 2 调用方法
document.querySelector('.a').onclick = function() {
    audio.play()
}
document.querySelector('.b').onclick = function() {
    audio.pause()
}
</script>